export function bindAll(arr: string[], context: any) {
    for (let i = 0; i < arr.length; i += 1) {
        if (context[arr[i]]) {
            context[arr[i]] = context[arr[i]].bind(context);
        }
    }
}
